package com.example.config;

/**
 * @Author 王鹤蒲
 * @Date 2023 08 06
 */

//@Configuration
//public class InterceptorConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(jwtInterceptor())
//                .addPathPatterns("/**")
//                .excludePathPatterns("/user/login","/user/register","/file/**","/swagger-resources/**","/swagger-ui/**", "/v3/**", "/error","/user/getCaptcha","/user/sendEmailCode","/user/verifyEmailCode","/user/isPhonenumberExist","/user/isUsernameExist","/user/isEmailExist","/user/verifyUserEmail","/user/updatePassword");
//    }
//
//    @Bean
//    public JwtInterceptor jwtInterceptor(){
//        return new JwtInterceptor();
//    }
//}
